﻿@using RBS.Common
@{
    if (!User.Identity.IsAuthenticated)
    {
        var url = Url.Action(actionName: "Index", controllerName: "Login", routeValues: new {area = ""});
        Response.Redirect(url);
    }
    var user = (RBS.Core.Model.Hotel.H_Hotel_Users)Session[RBSKeys.SESSION_HOTEL_INFO]; 
    var hotelId = user.HotelId;
    var abc = ViewContext.RouteData.Values["action"]; 
    if (hotelId == 0)
    {
        var url = Url.Action("HotelEdit","Hotel",new{area=""});
        if ((string) abc != "HotelEdit")
        {
          Response.Redirect(url);
        }
    } 
}
 